import request from '@/utils/request'

// 查询一站式社区模块-社区活动列表
export function listOneStopCommunityActivities(query) {
  return request({
    url: '/staff/OneStopCommunityActivities/list',
    method: 'get',
    params: query
  })
}

// 查询一站式社区模块-社区活动列表
export function listAll(query) {
  return request({
    url: '/staff/OneStopCommunityActivities/listAll',
    method: 'get',
    params: query
  })
}

// 查询一站式社区模块-社区活动详细
export function getOneStopCommunityActivities(activityId) {
  return request({
    url: '/staff/OneStopCommunityActivities/' + activityId,
    method: 'get'
  })
}

// 新增一站式社区模块-社区活动
export function addOneStopCommunityActivities(data) {
  return request({
    url: '/staff/OneStopCommunityActivities/add',
    method: 'post',
    data: data
  })
}

// 修改一站式社区模块-社区活动
export function updateOneStopCommunityActivities(data) {
  return request({
    url: '/staff/OneStopCommunityActivities/update',
    method: 'post',
    data: data
  })
}

// 删除一站式社区模块-社区活动
export function delOneStopCommunityActivities(activityId) {
  return request({
    url: '/staff/OneStopCommunityActivities/' + activityId,
    method: 'post'
  })
}
